# -*- coding: utf-8 -*-
# author: 葛木瓜
# 20190304

def bubbling_sort(lst):
    
    for i in range(len(lst)-1):
        for j in range(len(lst)-1-i):
            if lst[j] > lst[j+1]:
                lst[j], lst[j+1] = lst[j+1] , lst[j]
            
    return print(lst)

l = [1,0, 3,5]
bubbling_sort(l)


'''
for i in range(0, len(lst)):
    for j in range(i+1, len(lst)):
        if lst[i] > lst[j]:
            lst[i], lst[j] = lst[j], lst[i]
            print(lst)
print(lst)

'''
